package com.busines.alipay;

import java.util.Map;

public class AliPayUtil {
	

	/** 
     *  
     * @param amount 订单金额 
     * @param subject 订单标题 
     * @param body 订单描述 
     * @param outTradeNo订单号 
     * @return 
     */  
    public static String orderInfo(String amount,String subject,String outTradeNo) {  
        //获取appid  
        String appId=AlipayTools.config.APP_ID;  
        Map<String, String> authInfoMap = OrderInfoUtil.buildOrderParamMap(appId,amount,subject,outTradeNo);  
        String info = OrderInfoUtil.buildOrderParam(authInfoMap);  
        String rsaPrivate =AlipayTools.config.RSA_PRIVATE; //获取商户密钥  
        String sign = OrderInfoUtil.getSign(authInfoMap, rsaPrivate);  
        final String orderInfo = info + "&" + sign;  
        return orderInfo;  
    }
    
   
    
}
